package com.demo.janus.api.service;

import org.springframework.stereotype.Service;

import com.demo.janus.api.code.APIMapping;
import com.demo.janus.api.vo.User;

@Service
public class UserServiceImpl implements UserService{
	/**
	 * http://localhost:8080/janus/api?method=user.getUser&params={"userId":1}
	 * 若出现请求The valid characters are defined in RFC 7230 and RFC 3986
	 * 请参见：http://blog.csdn.net/janus_java/article/details/77447746
	 */
	@APIMapping("user.getUser")
	@Override
	public User getUser(Long userId) {
		User user = new User();
		user.setUserId(userId);
		user.setUsername("张三");
		user.setAge(18);
		return user;
	}
}
